/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package locusts.server;

import java.io.Serializable;
import java.net.InetSocketAddress;

/**
 *
 * @author hamish
 */
public class ServerConfig  implements Serializable {

    private transient static final int DEFAULT_PORT = 9123;

    private int port;

    public ServerConfig() {
        this.port = DEFAULT_PORT;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public InetSocketAddress getSocketAddress() {
        return new InetSocketAddress(port);
    }
}
